#include "conversetextmessage.h"
#include "converseabstractconversation.h"


namespace Converse {

TextMessage::TextMessage(qint64 id,
                         qint64 sendingId,
                         const AbstractConversation &conversation,
                         qint64 createdTime,
                         qint64 receivedTime,
                         qint64 senderId,
                         qint64 receiverId,
                         const QString &text,
                         QObject *parent)
    : Converse::AbstractMessage(id,
                                sendingId,
                                conversation,
                                createdTime,
                                receivedTime,
                                senderId,
                                receiverId,
                                parent)
    , m_text(text)
{
}


const QString &TextMessage::message() const
{
    return m_text;
}


AbstractMessage::Type TextMessage::type() const
{
    return AbstractMessage::TextType;
}


QVariant TextMessage::extra() const
{
    return QVariant("");
}

} // namespace Converse
